#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
namespace Cephei.QL.Experimental.Credit
{
     // <summary> 
	// ! This class encapsulates the ISDA default contractual types and their combinations. Non-atomicity works only at the atomic type level, obviating the specific event characteristics which it is accounted for only in derived classes.
	// </summary>
    [Guid ("F9F0C5A8-88ED-4c37-A52A-918C940F76D7"),ComVisible(true)]
	public interface IDefaultType 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Boolean ContainsDefaultType(QL.Experimental.Credit.AtomicDefault.TypeEnum defType);
        
		 Boolean ContainsRestructuringType(QL.Experimental.Credit.Restructuring.TypeEnum resType);
        
		 QL.Experimental.Credit.AtomicDefault.TypeEnum DefaultType {get;}
        
		 Boolean IsRestructuring {get;}
        
		 QL.Experimental.Credit.Restructuring.TypeEnum RestructuringType {get;}
    }

    // <summary> 
	// ! This class encapsulates the ISDA default contractual types and their combinations. Non-atomicity works only at the atomic type level, obviating the specific event characteristics which it is accounted for only in derived classes. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IDefaultType_Factory // : Collection_Factory<IDefaultType, ICell<IDefaultType>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IDefaultType, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIDefaultType&gt</returns>
        IVector<IDefaultType> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IDefaultType, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIDefaultType&gt&gt&gt</returns>
        Generic.ICell<IVector<Generic.ICell<IDefaultType>>> CreateCellVector();
        IVector<IDefaultType> CreateVector(IEnumerable<IDefaultType> source);
        Generic.ICell<IVector<Generic.ICell<IDefaultType>>> CreateCellVector(IEnumerable<Generic.ICell<IDefaultType>> source);
        
	    IDefaultType Create (Microsoft.FSharp.Core.FSharpOption<QL.Experimental.Credit.AtomicDefault.TypeEnum> defType, Microsoft.FSharp.Core.FSharpOption<QL.Experimental.Credit.Restructuring.TypeEnum> restType);
    }
}

